package com.woniuxy.service;

import com.woniuxy.entity.ShopOrderItems;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (ShopOrderItems)表服务接口
 *
 * @author makejava
 * @since 2025-07-10 11:54:15
 */
public interface ShopOrderItemsService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ShopOrderItems queryById(Long id);

    /**
     * 分页查询
     *
     * @param shopOrderItems 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<ShopOrderItems> queryByPage(ShopOrderItems shopOrderItems, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param shopOrderItems 实例对象
     * @return 实例对象
     */
    List<ShopOrderItems> insert(List<ShopOrderItems> shopOrderItems);
    List<ShopOrderItems> insert2(List<ShopOrderItems> shopOrderItems);
    /**
     * 修改数据
     *
     * @param shopOrderItems 实例对象
     * @return 实例对象
     */
    ShopOrderItems update(ShopOrderItems shopOrderItems);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

}
